<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-05-13 11:48:24
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-05-13 11:57:22
 * @FilePath: \geyao\百度地图api220513.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=eV6V2twyXfsn3PTQnulN6Q75FcyG02zA"></script>
  <title>百度地图api</title>
  <style type="text/css">
    html {
      height: 100%
    }

    body {
      height: 100%;
      margin: 0px;
      padding: 0px
    }

    .map,#container {
      height: 100%
    }
  </style>
</head>

<body>
  <div class="map">
    <div id="container"></div>
  </div>
  <script>
    var map = new BMapGL.Map("container"); // 创建地图实例 
    var point = new BMapGL.Point(116.404, 39.915); // 创建点坐标 
    map.centerAndZoom(point, 15); // 初始化地图，设置中心点坐标和地图级别
  </script>
</body>

</html>